import { login } from "./apis/user";
// app.js
App({
  onLaunch() {
    // 登录
    wx.login({
      success: async (res) => {
        const token = await login(res.code);
        wx.setStorageSync("token", token);
      },
    });
  },
  globalData: {
    userInfo: null,
    currentCategory: 0
  },
});
